package bean;


import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;

/**
 * @author 栋
 * @date 2022/11/7
 * @description 订单交易信息类
 */
public class Orders {
    private String order_id;//订单编号
    private String user_id;//买家编号
    private String item_id;//商品编号
    private String method;//交易方式
    private String item_name;//商品名称
    private Integer buy_count;//购买数量
    private BigDecimal total_price;//总价钱
    private Date buy_date;
    private Time buy_time;//购买时间
    private String address;//交易地址
    private String arrival;//是否到货

    public Orders() {
    }

    public Orders(String order_id, String user_id, String item_id, String method, String item_name, Integer buy_count, BigDecimal total_price, Date buy_date, Time buy_time, String address, String arrival) {
        this.order_id = order_id;
        this.user_id = user_id;
        this.item_id = item_id;
        this.method = method;
        this.item_name = item_name;
        this.buy_count = buy_count;
        this.total_price = total_price;
        this.buy_date = buy_date;
        this.buy_time = buy_time;
        this.address = address;
        this.arrival = arrival;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getItem_id() {
        return item_id;
    }

    public void setItem_id(String item_id) {
        this.item_id = item_id;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getItem_name() {
        return item_name;
    }

    public void setItem_name(String item_name) {
        this.item_name = item_name;
    }

    public Integer getBuy_count() {
        return buy_count;
    }

    public void setBuy_count(Integer buy_count) {
        this.buy_count = buy_count;
    }

    public BigDecimal getTotal_price() {
        return total_price;
    }

    public void setTotal_price(BigDecimal total_price) {
        this.total_price = total_price;
    }

    public Date getBuy_date() {
        return buy_date;
    }

    public void setBuy_date(Date buy_date) {
        this.buy_date = buy_date;
    }

    public Time getBuy_time() {
        return buy_time;
    }

    public void setBuy_time(Time buy_time) {
        this.buy_time = buy_time;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getArrival() {
        return arrival;
    }

    public void setArrival(String arrival) {
        this.arrival = arrival;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "order_id='" + order_id + '\'' +
                ", user_id='" + user_id + '\'' +
                ", item_id='" + item_id + '\'' +
                ", method='" + method + '\'' +
                ", item_name='" + item_name + '\'' +
                ", buy_count=" + buy_count +
                ", total_price=" + total_price +
                ", buy_date=" + buy_date +
                ", buy_time=" + buy_time +
                ", address='" + address + '\'' +
                ", arrival='" + arrival + '\'' +
                '}';
    }
}
